import 'package:kkhousekeep/generated/json/base/json_field.dart';
import 'package:kkhousekeep/generated/json/repair_staff_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class RepairStaffListEntity {
	late int code;
	late List<RepairStaffListObj> obj;
	late String msg;

	RepairStaffListEntity();

	factory RepairStaffListEntity.fromJson(Map<String, dynamic> json) => $RepairStaffListEntityFromJson(json);

	Map<String, dynamic> toJson() => $RepairStaffListEntityToJson(this);

	RepairStaffListEntity copyWith({int? code, List<RepairStaffListObj>? obj, String? msg}) {
		return RepairStaffListEntity()
			..code= code ?? this.code
			..obj= obj ?? this.obj
			..msg= msg ?? this.msg;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class RepairStaffListObj {
	late int id;
	late String name;

	RepairStaffListObj();

	factory RepairStaffListObj.fromJson(Map<String, dynamic> json) => $RepairStaffListObjFromJson(json);

	Map<String, dynamic> toJson() => $RepairStaffListObjToJson(this);

	RepairStaffListObj copyWith({int? id, String? name}) {
		return RepairStaffListObj()
			..id= id ?? this.id
			..name= name ?? this.name;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}